package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TBasePalletMapper;
import com.ruoyi.system.domain.TBasePallet;
import com.ruoyi.system.service.ITBasePalletService;

/**
 * tuopanService业务层处理
 *
 * @author ruoyi
 * @date 2024-09-04
 */
@Service
public class TBasePalletServiceImpl implements ITBasePalletService
{
    @Autowired
    private TBasePalletMapper tBasePalletMapper;

    /**
     * 查询tuopan
     *
     * @param palletId tuopan主键
     * @return tuopan
     */
    @Override
    public TBasePallet selectTBasePalletByPalletId(String palletId)
    {
        return tBasePalletMapper.selectTBasePalletByPalletId(palletId);
    }

    /**
     * 查询tuopan列表
     *
     * @param tBasePallet tuopan
     * @return tuopan
     */
    @Override
    public List<TBasePallet> selectTBasePalletList(TBasePallet tBasePallet)
    {
        return tBasePalletMapper.selectTBasePalletList(tBasePallet);
    }

    /**
     * 新增tuopan
     *
     * @param tBasePallet tuopan
     * @return 结果
     */
    @Override
    public int insertTBasePallet(TBasePallet tBasePallet)
    {
        return tBasePalletMapper.insertTBasePallet(tBasePallet);
    }

    /**
     * 修改tuopan
     *
     * @param tBasePallet tuopan
     * @return 结果
     */
    @Override
    public int updateTBasePallet(TBasePallet tBasePallet)
    {
        return tBasePalletMapper.updateTBasePallet(tBasePallet);
    }

    /**
     * 批量删除tuopan
     *
     * @param palletIds 需要删除的tuopan主键
     * @return 结果
     */
    @Override
    public int deleteTBasePalletByPalletIds(String[] palletIds)
    {
        return tBasePalletMapper.deleteTBasePalletByPalletIds(palletIds);
    }

    /**
     * 删除tuopan信息
     *
     * @param palletId tuopan主键
     * @return 结果
     */
    @Override
    public int deleteTBasePalletByPalletId(String palletId)
    {
        return tBasePalletMapper.deleteTBasePalletByPalletId(palletId);
    }
}
